package com.cow.sram.data.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;



/**
 * The persistent class for the userrole database table.
 * 
 */
@Entity
@Table(name="userrole")
@NamedQuery(name="Userrole.findAll", query="SELECT u FROM Userrole u")
public class Userrole implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer mapid;

	private Integer grantor;

	private Integer roleid;

	private Integer userid;

	private Integer privilegetype;
	

	public Userrole() {
	}
	
	public Integer getPrivilegetype() {
		return privilegetype;
	}

	public void setPrivilegetype(Integer privilegetype) {
		this.privilegetype = privilegetype;
	}


	public Integer getMapid() {
		return this.mapid;
	}

	public void setMapid(Integer mapid) {
		this.mapid = mapid;
	}

	public Integer getGrantor() {
		return this.grantor;
	}

	public void setGrantor(Integer grantor) {
		this.grantor = grantor;
	}

	public Integer getRoleid() {
		return this.roleid;
	}

	public void setRoleid(Integer roleid) {
		this.roleid = roleid;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

}